package org.fastng.xml {
	
	import mx.collections.ArrayCollection;
	
	/**
	 * An abstract implementation of a FastNG XML <class> node.
	 */
	public class XmlClass {	
		
		private var _methods:ArrayCollection;
		
		/**
		 * The name of the class.
		 */
		public var name:String;
		
		/**
		 * The constructor initializes a holder for multiple methods.
		 */
		public function XmlClass():void {
			_methods = new ArrayCollection();
		}
		
		/**
		 * Adds a method to the class.
		 * 
		 * @param test An instance of XmlClass.
		 */
		public function addClass(_class:XmlClass):void {
			_methods.addItem(_class);
		}
		
		/**
		 * Returns all methods in the class.
		 * 
		 * @return An instance of ArrayCollection.
		 */
		public function get methods():ArrayCollection {
			return _methods;
		}

	}
}